<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/common/meta.jsp"%>
<script type="text/javascript">
//dialog打开的时候

//部门下拉列表
$('#BaseCreatProjectTB_department').combobox({    
    url:'${pageContext.request.contextPath}/userpriviletAction!sendalldepartment.action',    
    valueField:'id',    
    textField:'departmentName', 
    onSelect: function(rec){    
    	//statusName= rec.departmentName;    
     }	
});
//工作地点下拉列表
$('#BaseCreatProjectTB_officelocation').combobox({    
    url:'${pageContext.request.contextPath}/userpriviletAction!sendalllocation.action',    
    valueField:'id',    
    textField:'cityName', 
    onSelect: function(rec){    
    	//statusName= rec.jobTitle;    
     }	
});
$('#BaseCreatProjectTB_dlg').dialog({
	onOpen:function()
		{
			$.post('${pageContext.request.contextPath}/croateprojecttypeAction!getallvalue.action',function(result){
				var cpta=""; 	
						for(var i=0;i<result.length;i++)
			     		{
							cpta+='<input name="CroateProjectTypeID" type="checkbox"  value="'+"张三"+'"/>'+"张三";
			     		}
						 $("#BaseCreatProjectTB_cptiddiv").html(cpta);
			     },'json');
			 //项目类型单选框
			$.post('${pageContext.request.contextPath}/projecttypeAction!getallvalue.action',function(result){
				   
				var pta=""; 	
						for(var i=0;i<result.length;i++)
			     		{
							pta+='<input name="ProjectTypeID" type="checkbox"  value="'+"李四"+'"/>'+"李四";
			     		}
						 $("#BaseCreatProjectTB_ProjectType").html(pta);
			     },'json');
		}
});



</script>
<div id="BaseCreatProjectTB_dlg" title="立项申请表" class="easyui-dialog" 
    cache="false" closed="false" buttons="#BaseCreatProjectTB_dlg-buttons"
   >
 <form id="BaseCreatProjectTB_fm" method="post" novalidate>
<table width="905" height="400" border="1">
  <tr>
    <th colspan="11"><div align="center">项目销售立项登记审批表</div></th>
  </tr>
  <tr>
    <th colspan="4" width="300">申请人:<input type="text" name="Applicant" id="textfield2" class="easyui-validatebox" data-options="required:true"/></th>
    <th colspan="3" width="300">单据号：<input type="text" name="Document_No" id="textfield2" class="easyui-validatebox" data-options="required:true"/></th>
    <th colspan="4" width="300">项目编号：<input type="text" name="ProjectNum" id="textfield2" class="easyui-validatebox" data-options="required:true"/></th>
  </tr>
  <tr>
    <th colspan="4" width="300">招标日期：<input type="text" name="Tender" id="textfield2" class="easyui-datebox" data-options="required:true"/></th>
    <th colspan="3" width="300">申请日期：<input type="text" name="ApplicationDate" id="textfield2" class="easyui-datebox" data-options="required:true"/></th>
    <th colspan="4" width="300">签约日期：<input type="text" name="Signing" id="textfield2" class="easyui-datebox" data-options="required:true"/></th>
  </tr>
  <tr>
    <th colspan="6" width="450">办公base：<input name="OfficeLocation" id="BaseCreatProjectTB_officelocation" /></th>
    <th colspan="5" width="450">部门名称：<input name="DepartmentID" id="BaseCreatProjectTB_department"/></th>
  </tr>
  <tr>
    <th colspan="6" width="450">立项类型：<div name="CroateProjectTypeID" id="BaseCreatProjectTB_cptiddiv"></div></th>
    <th colspan="5" width="450">项目全称：<input type="text" name="ProgectName" id="textfield2" class="easyui-validatebox" data-options="required:true"/></th>
  </tr>
  <tr>
    <th width="92">项目类型</th>
    <th colspan="10"><div id="BaseCreatProjectTB_ProjectType"></div></th>
  </tr>
</table>
 </form>
</div>

 <div id="BaseCreatProjectTB_dlg-buttons">
        <a href="javascript:void(0)" class="easyui-linkbutton c6" iconCls="icon-ok" onclick="BaseCreatProjectTB_saveUser()" style="width:90px">保存</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#BaseCreatProjectTB_dlg').dialog('close')" style="width:90px">取消</a>
    </div>